var status = -1;

function start(d, c, b) {
    status++;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status === a++) {
            qm.updateInfoQuest(30012, "clear=false");
            qm.forceStartQuest();
            qm.dispose()
        } else {
            qm.dispose()
        }
    }
}

function end(d, c, b) {
    status++;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status <= a++) {
            qm.sendNormalTalk("北侧的封印也解开了吗？", 0, 1064002, false, true)
        } else {
            if (status === a++) {
                qm.sendNormalTalk("嗯，现在所有的封印守护者都消灭掉了。你的封印也应该已经解开了。", 2, 1064002, true, true)
            } else {
                if (status === a++) {
                    qm.sendNormalTalk("我说怎么感觉身体变轻了。束缚着身体的黑暗气息已经完全感觉不到了！封印好像已经完全解开了！", 0, 1064002, true, true)
                } else {
                    if (status === a++) {
                        qm.fieldEffect_ScreenMsg("rootabyss/undo");
                        qm.forceStartQuest(30012, "");
                        qm.forceCompleteQuest(30012);
                        qm.gainExp(886000);
                        qm.effect_Voice("Field.img/rootabyss/undo", 100);
                        qm.dispose()
                    }
                }
            }
        }
    }
};